package edu.vital.energy.longevity.ch11.service;

import com.github.pagehelper.PageInfo;
import edu.vital.energy.longevity.ch11.model.domain.Category;

import java.util.List;

public interface ICategoryService {

    void addCategory(String name);

    void deleteCategory(Integer id);

    void updateCategory(Category category);

    Category getCategoryById(Integer id);

    PageInfo<Category> getAllCategories(int page, int count);

    List<Category> getAllCategories(); // For dropdowns or lists without pagination

    List<String> getAllCategoryNames();
}